<header id="header" role="banner">
	<div class="header-container2">
    <?php if ($logo): ?>
      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
    <?php endif; ?>
    
    <div class="header-container">
			<div class="add-nav1">
				<ul>
        			<li><a href="#">借阅须知</a></li>
        			<?php 
        				if($logged_in) {
        					print '<li class="cart-item">'. l($user->name,'user') .'</li>';
        					if($is_admin) {
        						print '<li class="cart-item">'. l('管理','admin') .'</li>';
        					}
        					print '<li class="cart-item">'. l('我的收藏夹','user_collectbooks/'.$user->uid) .'</li>';
        					print '<li class="cart-item">'. l('我的借书架','user_scribe/'.$user->uid) .'</li>';
        					print '<li class="cart-item">'. l('退出','user/logout') .'</li>';
        				}else{
							print '<li class="cart-item">'. l('登陆','user/login') .'</li>';
							print '<li class="cart-item">'. l('注册','user/register') .'</li>';
        				}
        			?>
				</ul>
			</div>
      
			<div class="add-nav2">
				<ul>
					<li>QQ000</li>
					<li>186</li>
					<li>1.800.800.1312</li>
				</ul>
			</div>
			<div class="container">
			
        		<div id="searchbar">
							<form action="<?php print base_path()?>search/node" method="post" class="search-form">
								<input onfocus="this.value=''" value="搜索" id="search" name="search" type="text">
								<input value="" class="button btn-search" type="submit">
							</form>
						<div style="display: none;" id="global-typeahead-search-box"></div>
						</div>
  
			</div>
		</div>
	</div>
  	<?php require 'nav.inc'; ?>
 </header>